%li
  %h4.project-title
    .project-access-icon
      = visibility_level_icon(project.visibility_level)
    = link_to project.name_with_namespace, [project.namespace.becomes(Namespace), project]
    %span.pull-right
      %i.fa.fa-star
      = project.star_count

  .project-info
    - if project.description.present?
      %p.project-description.str-truncated
        = project.description

    .repo-info
      - unless project.empty_repo?
        = link_to pluralize(round_commit_count(project), 'commit'), namespace_project_commits_path(project.namespace, project, project.default_branch)
        &middot;
        = link_to pluralize(project.repository.branch_names.count, 'branch'), namespace_project_branches_path(project.namespace, project)
        &middot;
        = link_to pluralize(project.repository.tag_names.count, 'tag'), namespace_project_tags_path(project.namespace, project)
      - else
        %i.fa.fa-exclamation-triangle
        Empty repository
